<template>
	<view class="goods-item">
		<!-- 左侧的盒子 -->
		<view class="goods-item-left">
			<image :src="goods.data_img" class="goods-pic"></image>
		</view>
		<!-- 右侧的盒子 -->
		<view class="goods-item-right">
			<view class="goods-namae">{{goods.data_title}}</view>
			<view class="goods-info-box">
				<view class="goods-from">{{goods.data_copyfrom}}</view>
				<view class="goods-author">作者：{{goods.data_author}}</view>
				<view class="goods-date">{{goods.data_updateDate}}</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default{
		props:{
			goods:{
				type:Object,
				default:{}
			}
		},
		data(){
			return{
				
			};
		}
	}
</script>

<style lang="scss">
.goods-item{
	display: flex;
	padding: 10px 5px;
	border-bottom: 1px solid #f0f0f0;
	
	.goods-item-left{
		margin-right: 5px;
		
		.goods-pic{
			width: 100px;
			height: 100px;
			display: block;
		}
	}
	
	.goods-item-right{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.goods-name{
			color: #000000;
			font-size: 10px;
		}
		.goods-info-box{
			.goods-from{
				color: #00557f;
				font-size: 12px;
			}
			.goods-author{
				color: #00557f;
				font-size: 12px;
			}
			.goods-date{
				color: #00557f;
				font-size:  12px;
			}
		}
	}
}
</style>

